package com.codingman.springbootmybatisdemo1;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EmployeeMapper {

	Employee getEmployeeById(Integer id);

	void insertEmployee(Employee account);

	void updateEmployee(Employee account);

	void deleteEmployee(Integer id);

	List<Employee> findAll();
	
	Employee getEmployeeByAny(Employee account);
	
	Employee getEmployeeByIdOrName(@Param(value = "id") Integer id, @Param(value = "name") String name);
}
